package com.sservice.commonBusiness.service.impl;

import com.sservice.commonBusiness.e.DataR;
import com.sservice.commonBusiness.mapper.DataRMapper;
import com.sservice.commonBusiness.service.DataRService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * Created by byte_su@163.com on 2018/02/26.
 */
@Service
public class DataRServiceImpl implements DataRService {

    @Autowired
    private DataRMapper dataRMapper;

    @Override
    public int addBatch(List<DataR> list) {
        return dataRMapper.addBatch(list);
    }

    @Override
    public int delBy(DataR data) {
        return dataRMapper.deleteBy(data);
    }

    @Override
    public int updateByPrimaryKeySelective(DataR data) {
        return dataRMapper.updateByPrimaryKeySelective(data);
    }

    @Override
    public int insertSelective(DataR record) {
        return dataRMapper.insertSelective(record);
    }

    @Override
    public List<DataR> queryBy(DataR data) {
        return dataRMapper.queryBy(data);
    }
}
